package day6.zuoye;

import java.util.Scanner;

public class Test05 {
    public static void main(String[] args) {
        Scanner input =new Scanner(System.in);
        System.out.println("输入一个整数");
        int a=input.nextInt();
        int b=a;
        int i=0;
        while(a>0){
            i=i*10+a%10;
            a=a/10;
        }
        if (i==b){
            System.out.println("是回文数");
        }else{
            System.out.println("不是回文数");
        }
    }
}
